srcdir       = @srcdir@
top_builddir = @top_builddir@
top_srcdir   = @top_srcdir@

SCM_CATEGORY =

include ../Makefile.ext

LIBFILES = srfi-1.$(SOEXT)  \
           srfi-13.$(SOEXT) \
           srfi-19.$(SOEXT) \
           srfi-43.$(SOEXT) \
           srfi-133.$(SOEXT) \
	   srfi-144.$(SOEXT)
SCMFILES = srfi-1.sci  \
           srfi-13.sci \
           srfi-19.sci \
           srfi-43.sci \
           srfi-133.sci \
	   srfi-144.sci

GENERATED = Makefile
XCLEANFILES = *.c *.sci

OBJECTS = $(srfi_1_OBJECTS) \
	  $(srfi_13_OBJECTS) \
	  $(srfi_19_OBJECTS) \
	  $(srfi_43_OBJECTS) \
	  $(srfi_133_OBJECTS) \
	  $(srfi_144_OBJECTS)

all : $(LIBFILES)

install : install-std

#
# srfi-1
#

srfi_1_OBJECTS = srfi-1.$(OBJEXT)

srfi-1.$(SOEXT) : $(srfi_1_OBJECTS)
	$(MODLINK) srfi-1.$(SOEXT) $(srfi_1_OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

srfi-1.c srfi-1.sci : $(top_srcdir)/libsrc/srfi-1.scm
	$(PRECOMP) -e -i srfi-1.sci $(top_srcdir)/libsrc/srfi-1.scm

#
# srfi-13
#

srfi_13_OBJECTS = srfi-13.$(OBJEXT)

srfi-13.$(SOEXT) : $(srfi_13_OBJECTS)
	$(MODLINK) srfi-13.$(SOEXT) $(srfi_13_OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

srfi-13.c srfi-13.sci : $(top_srcdir)/libsrc/srfi-13.scm
	$(PRECOMP) -e -i srfi-13.sci $(top_srcdir)/libsrc/srfi-13.scm

#
# srfi-19
#

srfi_19_OBJECTS = srfi-19.$(OBJEXT)

srfi-19.$(SOEXT) : $(srfi_19_OBJECTS)
	$(MODLINK) srfi-19.$(SOEXT) $(srfi_19_OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

srfi-19.c srfi-19.sci : srfi-19.scm
	$(PRECOMP) -e -P $(srcdir)/srfi-19.scm

#
# srfi-43
#

srfi_43_OBJECTS = srfi-43.$(OBJEXT)

srfi-43.$(SOEXT) : $(srfi_43_OBJECTS)
	$(MODLINK) srfi-43.$(SOEXT) $(srfi_43_OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

srfi-43.c srfi-43.sci : srfi-43.scm
	$(PRECOMP) -e -P $(srcdir)/srfi-43.scm

#
# srfi-133
#

srfi_133_OBJECTS = srfi-133.$(OBJEXT)

srfi-133.$(SOEXT) : $(srfi_133_OBJECTS)
	$(MODLINK) srfi-133.$(SOEXT) $(srfi_133_OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

srfi-133.c srfi-133.sci : $(top_srcdir)/libsrc/srfi-133.scm
	$(PRECOMP) -e -P $(top_srcdir)/libsrc/srfi-133.scm

#
# srfi-144
#

srfi_144_OBJECTS = srfi-144.$(OBJEXT)

srfi-144.$(SOEXT) : $(srfi_144_OBJECTS)
	$(MODLINK) srfi-144.$(SOEXT) $(srfi_144_OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

srfi-144.c srfi-144.sci : srfi-144.scm
	$(PRECOMP) -e -P $(srcdir)/srfi-144.scm
